local unitDefs = {

C_HEAVYMORTAR = {
  name                = "Mobile Heavy Mortar",
  description         = "Long Range Artillery",
  
  objectName          = "c_heavymortar.obj",
  script              = "c_heavyaacannon.lua",  --"c_heavymortar.lua",
  buildPic            = "c_heavymortar.png",
  iconType            = "vehicle",  
  category            = [[LAND TANK WEAPON]],  --LEVEL1 NOTAIR
  TEDClass            = "TANK", 
  movementClass       = "TANK3c",
  
  -- Cost
  buildCostMetal      = 600,  
  buildCostEnergy     = 0,
  buildTime           = 6000,
  mass                = 400,
  power               = 600,  

  -- Damage
  maxDamage           = 1800,
  idleAutoHeal        = 5,
  idleTime            = 900,  

  -- Flanking Bonus
  flankingBonusMode   = 3,
  flankingBonusDir    = [[0 0 1]],
  flankingBonusMin    = 0.7,
  flankingBonusMax    = 1.3,	 
  
  -- Movement and Pathfinding
  footprintX          = 3,
  footprintZ          = 3,  
  maxVelocity         = 1.4,
  acceleration        = 0.02,
  brakeRate           = 0.002,
  turnRate            = 275,
  turnInPlace         = true,  
  maxSlope            = 20,
  maxWaterDepth       = 10,

  -- Tracks
  leaveTracks         = true,  
  trackOffset         = 3,
  trackStrength       = 6,
  trackStretch        = 1,
  trackType           = "StdTank",
  trackWidth          = 24,

  -- Abilities
  canMove             = true,  
  canAttack           = true,
  canGuard            = true,
  canPatrol           = true,

  -- Detection  
  sightDistance       = 480,
  seismicSignature    = 0,  

  -- Weapons
  explodeAs           = "UNIT_EXPLOSION_MEDIUM1",  
  selfDestructAs      = "UNIT_SELFD_MEDIUM1", 
  noChaseCategory     = [[SUB PLANE HELICOPTER]],
  highTrajectory      = 1,	

  weapons = {
    [1] = "C_MORTAR_HEAVY",
  },
  
  sfxtypes = {
    explosiongenerators = {
      --"custom:FLARE_CANNON_LIGHT",  --"custom:FLARE_CANNON_HEAVY",
    },
  },  

  customParams = {
    wreckModels = { "c_heavytank_wreck1.s3o", "c_heavytank_wreck1.s3o" },  --"c_heavymortar_wreck1.s3o", "c_heavymortar_wreck2.s3o"
    heapModels = { "3x3d.3do" },

	  soundCategory = "VEHICLE1",
  
	  armorThickness = 100,
	
	  lightDamageChance = 0.2,	
	  mediumDamageChance = 0.4,
	  heavyDamageChance = 0.4,
  },
},
}

return lowerkeys(unitDefs)